home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e_W_c_s - A TextField function that replaces
- part of a wide character string in a TextField widget
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/TextF.h>
-
- void XmTextFieldReplaceWcs (wwwwiiiiddddggggeeeetttt,,,, ffffrrrroooommmm____ppppoooossss,,,, ttttoooo____ppppoooossss,,,, wwwwccccssssttttrrrriiiinnnngggg)
- _W_i_d_g_e_t wwwwiiiiddddggggeeeetttt;
- _X_m_T_e_x_t_P_o_s_i_t_i_o_nffffrrrroooommmm____ppppoooossss;
- _X_m_T_e_x_t_P_o_s_i_t_i_o_nttttoooo____ppppoooossss;
- _w_c_h_a_r__t *wwwwccccssssttttrrrriiiinnnngggg;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e_W_c_s replaces part of the wide character
- string in the TextField widget. The character positions
- begin at zero and are numbered sequentially from the
- beginning of the text.
-
- An example text replacement would be to replace the second
- and third characters in the text string. To accomplish
- this, the parameter ffffrrrroooommmm____ppppoooossss must be 1 and ttttoooo____ppppoooossss must be 3.
- To insert a string after the fourth character, both
- parameters, ffffrrrroooommmm____ppppoooossss and ttttoooo____ppppoooossss, must be 4.
-
- This routine calls the widget's _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k and
- verification callbacks, either _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k or
- _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s, or both. If both verification
- callback lists are registered, the procedures of the
- _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k list are executed first and the
- resulting data is passed to the _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s
- callbacks.
-
- wwwwiiiiddddggggeeeetttt
- Specifies the TextField widget ID
-
- ffffrrrroooommmm____ppppoooossss
- Specifies the start position of the text to be replaced
-
- ttttoooo____ppppoooossss
- Specifies the end position of the text to be replaced
-
- wwwwccccssssttttrrrriiiinnnngggg
- Specifies the wide character string value to be added
- to the TextField widget
-
- For a complete definition of TextField and its associated
- resources, see _X_m_T_e_x_t_F_i_e_l_d(_3_X).
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_T_e_x_t_F_i_e_l_d(_3_X) and _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e(_3_X).
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-